VerticalBoxLayout.setHAlign

Sets the Horizontal alignment for all child content where all child controls are aligned as a single block.

Supported values:
ValueConstant
ControlConstants.HORIZONTAL_ALIGNMENT_NONE
CenterControlConstants.HORIZONTAL_ALIGNMENT_CENTER
LeftControlConstants.HORIZONTAL_ALIGNMENT_LEFT
RightControlConstants.HORIZONTAL_ALIGNMENT_RIGHT
FillControlConstants.HORIZONTAL_ALIGNMENT_FILL

Setting a value of null removes any existing value for the property.

Further documentation.

Example:

 controls.PANEL1.layout.setHAlign(ControlConstants.HORIZONTAL_ALIGNMENT_CENTER);
 

Parameters

java.lang.String  hAlign,